#!/bin/bash
 ##
 # Per PHP Library
 # Bash
 # ScheduledScript
 #
 # @author	Emre Hasegeli <hasegeli@aresbt.com>
 # @date	2010-05-29
 ##

cd /srv/

./$1 2> error

if [ -s error ]; then
	mutt -s "Error on \"$1\" scheduledScript of \"$(hostname)\" server" $2 < error

fi

rm error

exit 0
